package com.ct.model.map;

import com.ct.model.common.longpk.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 26.10.2009
 * Time: 22:47:10
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "gps_fmt_data")
@AttributeOverride(name="id", column = @Column(name="id") )
public class GPSData extends BaseEntity {
    private String imei;
    private Date eventdate;
    private String objectname;
    private Double lat;
    private Double lon;
    private String phone;

    @Column(name = "IMEI")
    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    @Column(name = "EVENTDATE")
    @Temporal(value = TemporalType.TIMESTAMP)
    public Date getEventdate() {
        return eventdate;
    }

    public void setEventdate(Date eventdate) {
        this.eventdate = eventdate;
    }

    @Column(name = "OBJECTNAME")
    public String getObjectname() {
        return objectname;
    }

    public void setObjectname(String objectname) {
        this.objectname = objectname;
    }

    @Column(name = "LAT")
    public Double getLat() {
        return lat;
    }

    public void setLat(Double lat) {
        this.lat = lat;
    }

    @Column(name = "LON")
    public Double getLon() {
        return lon;
    }

    public void setLon(Double lon) {
        this.lon = lon;
    }

    @Column(name = "PHONE")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }



}
